<template>
  <el-carousel :height="swiperWidth+'px'" :interval="5000" arrow="always" style="z-index: 1;">
    <el-carousel-item v-for="item in swiperList" :key="item.id">
      <img :src="item.imgUrl" alt="" style="width: 100%">
    </el-carousel-item>
  </el-carousel>
</template>

<script>
export default {
  name: 'Swiper',
  props: ['swiperList', 'swiperWidth']
}
</script>

<style scoped>

</style>
